/* 获取元素 */
const left = document.querySelector(".left");
const right = document.querySelector(".right");
const container = document.querySelector(".container");
/* 鼠标移入事件 */
left.addEventListener("mouseenter", () =>
  container.classList.add("hover-left")
);
/* 鼠标移除事件 */
left.addEventListener("mouseleave", () =>
  container.classList.remove("hover-left")
);
/* 鼠标移入事件 */
right.addEventListener("mouseenter", () =>
  container.classList.add("hover-right")
);
/* 鼠标移除事件 */
right.addEventListener("mouseleave", () =>
  container.classList.remove("hover-right")
);
